package com.demo.bean;

import java.util.List;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUpload;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import fi.iki.elonen.NanoHTTPD;

public class NanoFileUpload extends FileUpload {

	public NanoFileUpload( ) {
		super(new DiskFileItemFactory());
	}

	public List<FileItem> parseRequest(NanoHTTPD.IHTTPSession session) throws FileUploadException {
		NanoHttpdContext nanoHttpdContext = new NanoHttpdContext(session) ;
		return this.parseRequest( nanoHttpdContext);
	}
}
